package com.atguigu.auth.activiti;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @version 1.0
 * @autor 雷记新
 */
public class MyTaskListenner implements TaskListener {
    @Override
    public void notify(DelegateTask task) {
        if (task.getName().equals("经理审批")){
            task.setAssignee("jack");
        }else if(task.getName().equals("人事审批")){
            task.setAssignee("tom");
        }
    }
}
